package org.example.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.example.entity.Delivery;
import org.example.mapper.DeliveryMapper;
import org.example.service.IDeliveryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2024-10-09
 */
@Service
public class DeliveryServiceImpl extends ServiceImpl<DeliveryMapper, Delivery> implements IDeliveryService {

    @Autowired
    private DeliveryMapper deliveryMapper;


    @Override
    public Page<Delivery> findPages(Integer pageNum, Integer pageSize) {
        Page<Delivery> page = new Page<>(pageNum, pageSize);

        return  deliveryMapper.findPages(page);
    }
}
